-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Make (unstable API) UniqueRc
invariant for soundness
#135379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This comment has been minimized.
This comment has been minimized.
b1b00a1
to
df57d65
Compare
lol, triagebot auto-rolled someone from compiler bc of the ui test r? libs cc @eholk @Mark-Simulacrum (for the original pr) |
@bors r+ Seems right. |
Yeah, this is definitely right. Conceptually this is like having a mutex that you can pre-reserve a read guard. |
…k-Simulacrum Make (unstable API) `UniqueRc` invariant for soundness Add test case from rust-lang#133572 (comment) (comment in review of `UniqueArc`), and fix the issue for `UniqueRc`.
Rollup of 5 pull requests Successful merges: - rust-lang#132232 (CI: build FreeBSD artifacts on FreeBSD 13.4) - rust-lang#135266 (Remove emsdk version update from 1.84.0 relnotes) - rust-lang#135364 (Cleanup `suggest_binding_for_closure_capture_self` diag in borrowck) - rust-lang#135375 (allow rustdoc-js tests to be run at stage0) - rust-lang#135379 (Make (unstable API) `UniqueRc` invariant for soundness) r? `@ghost` `@rustbot` modify labels: rollup
Do we have a corresponding test for |
We don’t have |
Ah. :) I didn't realize this is an |
I should have added a “…yet”. |
Add test case from #133572 (comment) (comment in review of
UniqueArc
), and fix the issue forUniqueRc
.